﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Sablon.Master" AutoEventWireup="true" CodeBehind="gonderisistemi.aspx.cs" Inherits="OnlineDovizOtomasyonu.gonderisistemi" %>
<%@ Register assembly="DevExpress.Web.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxUploadControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxHtmlEditor.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxHtmlEditor" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxSpellChecker.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxSpellChecker" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
    .style1
    {
        width: 100%;
    }
    .style2
    {
        height: 14px;
    }
    .style3
    {
        width: 24px;
        height: 24px;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table cellpadding="0" cellspacing="0" class="style1">
    <tr>
        <td>
            <dx:ASPxRoundPanel ID="PanelGenel" runat="server" HeaderText="Gönderi Paneli" 
                Theme="Aqua" Width="100%">
                <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
    <table cellpadding="0" cellspacing="0" class="style1">
        <tr>
            <td class="style2" height="25" style="width: 120px" width="120">
                Müşteri Group</td>
            <td class="style2" width="10">
                :</td>
            <td class="style2">
                <dx:ASPxComboBox ID="txtMusteriGroup" runat="server" 
                                                        DataSourceID="sdmusterigroup" DropDownStyle="DropDown" 
                                                        EnableIncrementalFiltering="True" IncrementalFilteringMode="StartsWith" 
                                                        LoadingPanelText="Yükleniyor..." TextField="ADI" 
                                                        TextFormatString="{1}" Theme="Aqua" ValueField="ID" 
                                                        AutoPostBack="True" Width="170px">
                                                        <Columns>
                                                            <dx:ListBoxColumn Caption="Group Kodu" FieldName="KODU" Width="100px" />
                                                            <dx:ListBoxColumn Caption="Group Adı" FieldName="ADI" Width="200px" />
                                                        </Columns>
                                                        <ValidationSettings ErrorDisplayMode="ImageWithTooltip">
                                                            <RequiredField ErrorText="Müşteri Gurubunu Seçiniz!" IsRequired="True" />
<RequiredField IsRequired="True" ErrorText="M&#252;şteri Gurubunu Se&#231;iniz!"></RequiredField>
                                                        </ValidationSettings>
                                                    </dx:ASPxComboBox>
                                                    <asp:SqlDataSource ID="sdmusterigroup" runat="server" 
                                                        ConnectionString="<%$ ConnectionStrings:webingdovizlistelericinbaglanti %>" 
                                                        SelectCommand="SELECT [ID], [KODU], [ADI] FROM [WEBINGDOVIZ_TBLGROUP] ORDER BY [ID]">
                                                    </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td class="style2" height="25" style="width: 120px" width="120">
                Müşteri E-Mail</td>
            <td class="style2" width="10">
                :</td>
            <td class="style2">
             <dx:ASPxComboBox ID="txtMusteriKodu" runat="server" 
                                                        LoadingPanelText="Yükleniyor..." 
                    Theme="Aqua" Width="170px" 
                                                        DataSourceID="sdMusteriBilgileri" 
                    TextFormatString="{2}" ValueField="ID"
                                                        EnableIncrementalFiltering="True" IncrementalFilteringMode="StartsWith" 
                                                        TabIndex="1" AutoPostBack="True">
                                                        <Columns>
                                                            <dx:ListBoxColumn Caption="Kodu" FieldName="KODU" Width="75px" />
                                                            <dx:ListBoxColumn Caption="Müşteri Adı" FieldName="ADI" Width="150px" />
                                                            <dx:ListBoxColumn Caption="E-Mail Adresi" FieldName="MAIL" Width="150px" />
                                                        </Columns>
                                                        <ValidationSettings ErrorDisplayMode="ImageWithTooltip">
                                                            <RequiredField ErrorText="Müşteri Seçiniz!" IsRequired="True" />
<RequiredField IsRequired="True" ErrorText="M&#252;şteri Se&#231;iniz!"></RequiredField>
                                                        </ValidationSettings>
                                                    </dx:ASPxComboBox>
                                                    <asp:SqlDataSource ID="sdMusteriBilgileri" runat="server" 
                                                        ConnectionString="<%$ ConnectionStrings:webingdovizlistelericinbaglanti %>" 
                                                        
                    SelectCommand="SELECT ID, KODU, ADI, MAIL, GRUP FROM WEBINGDOVIZ_TBLCARI WHERE (GRUP = @GRUP) ORDER BY ADI">
                                                        <SelectParameters>
                                                            <asp:ControlParameter ControlID="txtMusteriGroup" Name="GRUP" 
                                                                PropertyName="Value" Type="Int32" />
                                                        </SelectParameters>
                                                    </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td class="style2" height="25" style="width: 120px" width="120">
                Gönderi Başlığı</td>
            <td class="style2" width="10">
                :</td>
            <td class="style2">
                <dx:ASPxTextBox ID="txtKonu" runat="server" Theme="Aqua" Width="280px">
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td height="25">
                Dosya</td>
            <td>
                :</td>
            <td>
                <dx:ASPxUploadControl ID="fuAttach" runat="server" Width="280px" Theme="Aqua">
                </dx:ASPxUploadControl>
            </td>
        </tr>
        <tr>
            <td>
                Açıklama</td>
            <td>
                :</td>
            <td>
                <dx:ASPxHtmlEditor ID="txtAciklama" runat="server" Theme="Aqua" Width="100%">
                </dx:ASPxHtmlEditor>
            </td>
        </tr>
        <tr>
            <td height="25">
                &nbsp;</td>
            <td>
                 &nbsp;</td>
            <td>
                <dx:ASPxButton ID="btnGonder" runat="server" OnClick="btnGonder_Click" 
                    Text="Gönder" Theme="Aqua">
                </dx:ASPxButton>

            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                 &nbsp;</td>
            <td>
                <asp:UpdatePanel ID="UpdatePanelDurum" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <table class="style1">
                            <tr>
                                <td>
                                    <table cellpadding="0" cellspacing="0" class="style1">
                                        <tr>
                                            <td>
                                                <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                                                    <ProgressTemplate>
                                                        <img class="style3" src="images/icon/159.GIF" />
                                                    </ProgressTemplate>
                                                </asp:UpdateProgress>
                                            
                                            
                                                <dx:ASPxLabel ID="lblDurum" runat="server" Theme="Aqua">
                                                </dx:ASPxLabel>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
                    </dx:PanelContent>
</PanelCollection>
            </dx:ASPxRoundPanel>
        </td>
    </tr>
</table>
</asp:Content>
